<script setup lang="ts">
// import { ref } from 'vue'
// import Login from './views/Login.vue';
import { invoke } from '@tauri-apps/api/tauri';
import { useRouter } from 'vue-router';

const router = useRouter();

// const { invoke } = window.__TAURI__.tauri;

invoke('is_account_exists').then((res) => {
  if (!res) {
    console.log('no account');
    
    router.push('/create_account');
  } 
});
</script>

<template>
  <router-view />
  <!-- <Login /> -->
</template>